Repository navigation
feat(console): phone app menu bar with pinned entries, and a starred full menu behind More - #34628
Conversation
…ull menu Claude-Session: https://claude.ai/code/session_01WGufzimyx6JQRaukBK3z17 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzimyx6JQRaukBK3z17 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzimyx6JQRaukBK3z17 Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzimyx6JQRaukBK3z17 Co-authored-by: Claude <noreply@anthropic.com>
record-header-title-width.spec.ts pulls the class string ConsoleLayout
hands AppShell out of the source with a regex that only matched a bare
className="..." literal. The phone menu bar writes that prop as
cn(base, phoneNavBar && padding), so the lazy match walked on to the
banners box ("shrink-0") and the spec threw at collection, failing the
whole Build & E2E UI run. The extraction now reads the first string of
either spelling; the phone-only bottom padding changes no width and is
not reproduced.
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzimyx6JQRaukBK3z17
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT 席位核对Must-fix: none. Should-fix: none. Checklist
Acceptance (card #34594)
Notes (no action owed for this verdict)
Landing: ordinary (not Tier H). Delta read owed on any later push. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT (delta read) The delta is one merge commit: parents
Must-fix: none. Should-fix: none. Delta read owed on any later push. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT Delta read 9c4e10b..82a39f0 (2026-11-17T06:07Z). Prior verdict: ACCEPT at 9c4e10b (comment 6939577685). What moved. One merge commit, parents 9c4e10b (the accepted head) and d57d6ee (on main, carries #34641 and #34624). Its tree (0b1e8536) is byte-identical to Overlap. The only files both this PR and the newly merged main commits touch are the 11 Check-runs on 82a39f0. 58 runs, none red: Test UI 16/16 shards, Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, the Lint and Type Check gates, Check Changeset, PR-body guards and Governed Surface Queue Guard all success; the rest skipped by path filter. Must-fix: none. Should-fix: none. Notes: cleared for o3-D to land. |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-17T06:08Z
State: ready + auto-merge armed by area o3-D (lease |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44029231873 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Re-queue · 2026-11-17T06:31Z
Judgement: branch 3 of the triage checklist. This PR touches only |
Requested by Yibo Wang · project thread
Fixes #34594
Clause-②: yes (widening — one @object-ui/layout export + new @object-ui/i18n locale keys; no metadata key)
Metadata-protocol: none
repo:objectstack#3 · os-support-ai · session_01WGufzimyx6JQRaukBK3z17 (card thread for #34594, claim 6937381288)
维护者速读
@object-ui/app-shell布局、@object-ui/layout新增一个公开函数、@object-ui/i18n每种语言 3 个新键),不动元数据、契约和服务端;固定项沿用现有的每人固定数据(与桌面侧栏「收藏」同一份),不改存储形状。768 px 及以上完全不变。回滚即 revert 本 PR。ui/packages/app-shell/src/layout/PhoneAppNavBar.tsx的phoneNavBarEntries(固定项优先、补齐、跨应用的固定不占格);②ConsoleLayout.tsx的hidesPhoneNavBar与内容区底部留白;③UnifiedSidebar.tsx里手机抽屉新增的搜索框与星标(phoneMenu)。pnpm --dir ui exec vitest run packages/app-shell/src/layout/__tests__/UnifiedSidebar.phoneNavBar-34594.test.tsx,预期 11 个测试全部通过(375 宽下底部 4 格 +「更多」、星标后底部出现该项)。What changes
The bar (
ui/packages/app-shell/src/layout/PhoneAppNavBar.tsx, new): a fixednavalong the bottom edge,h-12plus the safe-area inset, up to four entry cells and a More cell.phoneNavBarEntries(items, pinnedIds, guards, hasAddress)picks the cells: the pinned ids (useNavPins().pinnedIds, the user's order) that this app's menu draws, then the app's drawn entries in menu order, to four. A pinned id the app's menu does not draw (another app's pin, or an entry the member cannot see) takes no cell, which is how pins are read per app without changing their stored shape (they are keyed by navigation id and are not app-scoped).actionentries and entries with no address are left out (a cell opens a page).resolveHref) and lights when that row lights (resolveActiveNavItem, over the whole tree, so at most one cell lights). Label and icon are the row's (resolveNavItemLabel,resolveNavItemIconwith the same resolvers).setOpenMobile(true));aria-expandedfollows it.The full menu (
UnifiedSidebar.tsx): the existing phone drawer gains, only where the layout asks for the bar (phoneNavBarprop), a search box (the renderer's ownsearchQuery, cleared when the drawer closes) and a hint line, and every entry carries a star (PhoneMenuStarthroughrenderItemAction) that calls the sametogglePinthe desktop ⋯ menu calls. The drawer's groups, area switcher and gates are unchanged. The bar reads every visible area of the app, from the same pruned trees the drawer draws (Studio: the rewritten tree the drawer shows).The route decision (
ConsoleLayout.tsx):phoneNavBar = phone && !hidesPhoneNavBar(pathname), wherehidesPhoneNavBarnames the record page (isRecordPagePath),/apps/APP/OBJECT/newand.../record/ID/edit. While the bar is drawn, the inset gets!pb-[calc(3rem+env(safe-area-inset-bottom))]: a self-bounded page (the list) ends above the bar, and a taller page scrolls its last row out from under it.The top-left control (
AppHeader.tsx): on a phone inside an app the slot holds a 44 px 「Back to home」 link touseHomePath()(the declared landing) instead of the sidebar trigger. From 768 px up the trigger is unchanged. This narrows the objectui#12429 "trigger at every width" layout below 768 px, per this card's item 3 (maintainer direction on epic #34571, epic comment 6936311101).The shared walk (
@object-ui/layout, surface widened by the seat): new exportdrawnNavigationEntries(items, options)inNavigationRenderer.tsx, the entries a tree draws in the sidebar's reading order (each level sorted by the internalbyNavOrder, each node throughhasVisibleNavigationItems).AppSchemaRenderer's privateMobileBottomNavnow calls it instead of its own copy of the walk, with no change in output;navOrder.ts's header names the new site (comment only). The console's bar calls the same helper, so neither tab bar writes the sort or the guard again.i18n:
console.nav.phoneBarLabel,console.nav.searchMenu,console.nav.phoneBarHintin all eleven packs (zh-Hant regenerated withscripts/gen-zh-hant.mjs). The star reusesconsole.nav.pinItem/unpinItem; the back link reuseslayout.appSwitcher.backToHome; More reusescommon.more.No new metadata key, no spec change, no server change.
Tests
UnifiedSidebar.phoneNavBar-34594.test.tsx(new; harness ofUnifiedSidebar.phoneDrawerCloses-29075with a stateful pin store; real@object-ui/layoutand@object-ui/components, 375 × 812): four entries + More with nothing pinned; pins first in pinned order then fill; a foreign pin and a hidden entry take no cell; the lit cell; More opens the drawer with search, six stars (the hidden entry has none) and search narrowing; a star pins through the store and the bar shows it first; controls: no bar without the layout's say-so, none at 768 px. PlusphoneNavBarEntriesunits:orderhonoured, cap at four with a duplicated pin,actionand address-less entries left out.ConsoleLayout.phoneRecordOneBar-28483.test.tsx(new top-level describe in the existing harness): at 375 px the app root, list, view, dashboard and page ask for the bar and the inset keeps it free; record page, named record page, edit form and create form do not; at 768 / 1440 px no route does;hidesPhoneNavBarpositives and negatives.AppHeader.sidebarTrigger-12429.test.tsx(new top-level describe, header prose updated): at 375 px the back link (accessible name,/home,size-11, first in the slot) and no trigger; at 768 px the trigger and no link; Home draws neither.git checkout HEAD --,git diff HEADempty.Acceptance notes
bottom-36(144 px), above the 48 px bar plus a 34 px safe area, so it needed no change (andObjectView.tsxis outside this card's surface). The assistant FAB sits atbottom-20(80 px) on a phone; on a device with a 34 px home-indicator inset the bar's top edge is at 82 px, a 2 px overlap of the FAB's lower edge, drawn over by the FAB (z-50 over z-40). Noted, not changed.expanded: falsekeeps that initial state while searching the full menu (the renderer's search filters, it does not open groups); matches the desktop search behaviour.Verification
0db6e109:pnpm --dir ui exec vitest run packages/layout/ packages/i18n/ packages/app-shell/src/layout/→ 292 files / 3258 tests, one red first (zh-hant-generated: zh-Hant must be generated; regenerated withgen-zh-hant.mjs), then the failed file and the new file re-run green (21/21). The three touched test files: 3 files, 28 tests, green.pnpm run type-check, both tsconfigs) of@object-ui/layout,@object-ui/i18n,@object-ui/app-shell: exit 0.react-refresh/only-export-componentson the new file's exported helper, the same classConsoleLayout.tsx'sisRecordPagePathcarries).uicheck:new-line-citations: 0 new citations. Derived gates (dispatch-gates --commands, 40): results in the os-dev-report comment on 手机端:进入应用后底部放菜单栏(读用户固定的菜单项),完整菜单收进「更多」 #34594; every CI family is read from this PR's check-runs.Generated by Claude Code